//
// Created by 86155 on 2025/4/16.
//

#include "FeSubtarget.h"
using namespace llvm;

#define DEBUG_TYPE "Fe-Subtarget"

#define GET_SUBTARGETINFO_TARGET_DESC
#define GET_SUBTARGETINFO_CTOR
#include "FeGenSubtargetInfo.inc"

FeSubtarget::FeSubtarget(const Triple &TT, StringRef CPU, StringRef FS,const TargetMachine &TM)
    : FeGenSubtargetInfo(TT, CPU, CPU, FS), FrameLowering(*this),RegInfo(*this),TLI(TM,*this)
{}

FeSubtarget &FeSubtarget::initializeSubtargetDependencies(const Triple &TT,StringRef CPU,StringRef FS,const TargetMachine &TM)
{
  if (CPU.empty()) {
    CPU = "fe";
  }
  ParseSubtargetFeatures(CPU, CPU, FS);
  return *this;
}